﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="OrganizationForm.aspx.cs" Inherits="App_Input_OrganizationForm" Title="权益机构"%>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<%@ Register TagPrefix="shpm" TagName="TipBar" Src ="~/App/Input/SaleProcessTipBar.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<asp:Panel ID="PanelNavigate" runat="server" />


<script type="text/javascript">

    function settext(row,relation,personId,nameC,sexText){
     
       // window.location.href= "../Master/PersonDetailForm.aspx?RELATION="+relation+"&PERSON_ID="+val;
        
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
     
            window.document.getElementById('<%=srhPersonId.ClientID%>').value = personId;
            theForm.submit();
        }
    }
    
    
 function popup(){

        window.open('../Commons/CustomerForm.aspx?RELATION=08','CustomerForm','scrollbars,resizable')
    }
</script>

        <cc1:ComValidator ID="ComValidator1" runat="server" ForeColor="Red" CheckItems-Capacity="4"
                    Visible="false">
                    <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="nameOrg">
                        <cc1:ComAbsParamsAttribute Parameter="机构名称" />
                    </cc1:CheckRequiredAttribute>
                    <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="natureOrg">
                        <cc1:ComAbsParamsAttribute Parameter="机构性质" />
                    </cc1:CheckRequiredAttribute>
                    <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="corporate">
                        <cc1:ComAbsParamsAttribute Parameter="法人代表" />
                    </cc1:CheckRequiredAttribute>
                    <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="adressOrg">
                        <cc1:ComAbsParamsAttribute Parameter="机构地址" />
                    </cc1:CheckRequiredAttribute>
                    
                     <cc1:CheckPostAttribute Code="E0036" ControlToValidator="postOrg">
                            <cc1:ComAbsParamsAttribute Parameter="邮编" />
                    </cc1:CheckPostAttribute>

        </cc1:ComValidator>
        
         <div id="container" >
                        <div id="title">
                            <ul>
                                <li id="tag1" style="display: none;">
                                    <asp:LinkButton ID="LinkButton1" OnCommand="lnkTab_Command" CommandName="btn0" runat="server"
                                        Enabled="false" Width="105px"><span>新建销售档案</span></asp:LinkButton>
                                </li>
                                <li id="tag2">
                                            <asp:LinkButton ID="LinkButton2" OnCommand="lnkTab_Command" CommandName="btn1" runat="server"><span>销售记录</span></asp:LinkButton>
                                </li>
                                <li id="tag3">
                                           <asp:LinkButton ID="LinkButton4" OnCommand="lnkTab_Command" CommandName="btn2" runat="server"
                                                    CssClass="selectli" OnClientClick="return false;" Width="95px"><span class="selectspan">权益人管理</span></asp:LinkButton>
                                </li>
                                <li id="tag4">
                                    <asp:LinkButton ID="LinkButton6" OnCommand="lnkTab_Command" CommandName="btn3" runat="server"><span >会员管理</span></asp:LinkButton>
                                </li>
                                <li id="tag5">
                                    <asp:LinkButton ID="LinkButton3" OnCommand="lnkTab_Command" CommandName="btn4" runat="server" Width="105px"><span >入住资格审核</span></asp:LinkButton>
                                </li>
                                <li id="tag6">
                                        <asp:LinkButton ID="LinkButton5" OnCommand="lnkTab_Command" CommandName="btn5" runat="server"><span>会员入住</span></asp:LinkButton>
                                </li>
                            </ul>
                                    <ul >
                                     <li id="Li1">
                                            <asp:LinkButton ID="LinkButton3_1"  OnCommand="lnkTab_Command" CommandName="btn3_1" runat="server" CssClass="selectli" OnClientClick="return false;" Width="95px"><span class="selectspan">权益人信息</span></asp:LinkButton></li><li id="Li2"  style="display:none">
                                                <asp:LinkButton ID="LinkButton3_2" OnCommand="lnkTab_Command" CommandName="btn3_2"  runat="server" Width="105px"  ><span >权益机构信息</span></asp:LinkButton></li><li
                                                    id="Li3">
                                                    <asp:LinkButton ID="LinkButton3_3" OnCommand="lnkTab_Command" CommandName="btn3_3"  runat="server" ><span>办理合同</span></asp:LinkButton>
                                                    </li>
                                                    </ul>
                                </div>
                    <div id="content" class="content1">
                    <shpm:TipBar runat="server" ID="tipBar" />
                      <div id="Div1" >
        <table class="table_border_line"  style="background: ffffff">
        <tr>
            <td style="height: 55px" >
                <table>
                    <tr>
                        <td class="" style="vertical-align: middle; width: 68px; height: 25px">
            权益类别：</td>
                        <td class="" colspan="3" style="width: 364px; height: 25px">
                <asp:RadioButtonList ID="rightRadio" runat="server" RepeatDirection="Horizontal"
                    AutoPostBack="True" OnSelectedIndexChanged="rightRadio_SelectedIndexChanged" >
                    <asp:ListItem  Value="0">权益人</asp:ListItem>
                     <asp:ListItem Selected="True" Value="1">权益机构</asp:ListItem>
                </asp:RadioButtonList></td>
                    </tr>
                </table>
            </td>
         </tr>
         </table>
        <table class="table_border_line">
            <tr>
                <th colspan="2" align="left" style="text-align: left;">

                    <script language="javascript">
        (new TitleBar('SearchBar3', '基本信息(机构)')).showBar();
                    </script>

                </th>
            </tr>
        </table>

        <table class="table_border_line" border="1" style="background: ffffff">
         
         
            <tr>
                <td style="width: 183px; height: 25px;" class="">
                    &nbsp;<span style="color: #ff7300">*</span>机构名称
                </td>
                <td style="height: 25px">
                    <asp:TextBox ID="nameOrg" runat="server" CssClass="input-box" MaxLength="100"></asp:TextBox>&nbsp;
                    <a
                        href="#" onclick="javascript:popup();"><span style="text-decoration: underline"><span
                            style="color: #0000ff">
                            <img border="0" src="../../images/search.jpg" /></span><span style="color: #0000ff">
                            </span></span></a>
                </td>
            </tr>
            <tr>
                <td style="width: 183px; height: 25px;" class="">
                    &nbsp;<span style="color: #ff7300">*</span>机构性质
                </td>
                <td style="height: 25px">
                    <asp:TextBox ID="natureOrg" runat="server" CssClass="input-box" MaxLength="100"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="height: 24px; width: 183px;" class="">
                    &nbsp;<span style="color: #ff7300">*</span>法人代表
                </td>
                <td style="height: 24px">
                    <asp:TextBox ID="corporate" runat="server" CssClass="input-box" MaxLength="100"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 183px; height: 25px;" class="">
                    &nbsp;<span style="color: #ff7300">*</span>地址
                </td>
                <td style="height: 25px">
                    <asp:TextBox ID="adressOrg" runat="server" CssClass="input-box" MaxLength="100"></asp:TextBox>&nbsp;</td>
            </tr>
            <tr>
                <td style="width: 183px" class="">
                    &nbsp;&nbsp; 邮编
                </td>
                <td>
                    <asp:TextBox ID="postOrg" runat="server" CssClass="input-box" MaxLength="100"></asp:TextBox>&nbsp;</td>
            </tr>
            <tr>
                <td style="width: 183px; height: 25px;" class="">
                    &nbsp;&nbsp; 联系人
                </td>
                <td style="height: 25px">
                    <asp:TextBox ID="contactOrg" runat="server" CssClass="input-box" MaxLength="100"></asp:TextBox></td>
            </tr>
        </table>
        <br />
        <table class="no_border_bg" border="0">
              <tr>
                  <td align="center" style="height: 26px">
                      <asp:Button ID="Commit" Text="保存"  CssClass="button" runat="server" 
                          OnClientClick="return confirm('是否登入数据？')" Width="75px" OnClick="Commit_Click" />&nbsp;&nbsp;
                      &nbsp;
                      <asp:Button ID="Del" runat="server" CssClass="button"  Text="删除"
                          Width="75px" OnClientClick="return confirm('是否删除该机构？')" OnClick="Del_Click" />
                     
                  </td>
              </tr>
          </table>
           <asp:HiddenField ID="srhPersonId" runat="server" />
                          
        </div>
        </div>
        </div>
</asp:Content>